<?php
class Essence extends MY_Controller
{

    protected $__enable_login_check = false;

    public function __construct()
    {
        parent::__construct();
        $this->load->model('services/essence_service', 'essence_service');
        $this->load->model('services/banner_service', 'banner_service');
    }

    public function getLists()
    {
        $lists = $this->essence_service->getLists();
        $this->renderJson(STATUS_OK, $lists);
    }

    public function getBanner()
    {
        $banners = $this->banner_service->getList();
        $this->renderJson(STATUS_OK, $banners);
    }

    public function initEss()
    {
        $this->essence_service->init();
    }

    public function initBanner()
    {
        $this->banner_service->init();
    }
}